import request from '@/utils/request'

export function deployment(data) {
  return request({
    url: '/api/work/flow/deployment',
    method: 'post',
    data: data
  })
}

export function getDeploymentList(data) {
  return request({
    url: '/api/work/flow/getDeploymentList',
    method: 'post',
    data: data
  })
}

export function startprocess(data) {
  return request({
    url: '/api/work/flow/startProcess',
    method: 'post',
    data: data
  })
}

export function getInstaceList(data) {
  return request({
    url: '/api/work/flow/getInstances',
    method: 'post',
    data: data
  })
}

export function getTasks(data) {
  return request({
    url: '/api/work/flow/getTasks',
    method: 'post',
    data: data
  })
}

export function processDiagram(data) {
  return request({
    url: '/api/work/flow/processDiagram',
    method: 'post',
    data: data
  })
}

export function getDefinitions(data) {
  return request({
    url: '/api/work/flow/getDefinitions',
    method: 'post',
    data: data
  })
}
